package com.project.bean;

/**
 * 用户实体类
 */
public class UserBean {
    /**
     * 用户编号
     */
    private Integer userId;

    /**
     * 用户姓名
     */
    private String username;

    /**
     * 用户密码
     */
    private String userPwd = "666";

    /**
     * 用户真实姓名
     */
    private String userRealName;

    /**
     * 用户等级
     */
    private String userLevel;

    public UserBean() {
    }

    public UserBean(Integer userId, String userName, String userRealName, String userLevel) {
        this.userId = userId;
        this.username = userName;
        this.userRealName = userRealName;
        this.userLevel = userLevel;
    }

    public UserBean(String userName, String userRealName, String userLevel) {
        this.username = userName;
        this.userRealName = userRealName;
        this.userLevel = userLevel;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return username;
    }

    public void setUserName(String userName) {
        this.username = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + username + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userRealName='" + userRealName + '\'' +
                ", userLevel='" + userLevel + '\'' +
                '}'+"\n";
    }
}
